define(function (require, exports, module) {

	$('.del-btn').click(function () {
		if ( confirm('是否要删除当前资讯') ) {
			var url = $(this).data('url');
			$.ajax({
				url : url,
				type : 'DELETE',
				success : function (data) {
					$.notify(data.message,{type:'success'});
					if(data.status == 1){
						setTimeout(function(){
							window.location.reload();
						},1000);
					}
				}
			})
		}
	});

	exports.run = function () {

	};

});
